package com.mis.geoEncryption.model.xml;

import com.mis.geoEncryption.model.data.ServerConnectMessage;
import com.mis.geoEncryption.model.data.clientData.ConnectToServerMessage;

public class MessageFactory {
	
	public static MessageFactory instance;
	
	public static MessageFactory getMessageFactoryInstance() {
		if(instance == null) {
			instance = new MessageFactory();
		}
		return instance;
	}
	
	public Object generateMessage(Object obj) {
		if (obj.getClass() == ConnectToServerMessage.class) {
			ServerConnectMessage msg = new ServerConnectMessage();
			return msg;
		}
		return null;
	}

}
